home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(load){
- function hit(whichShot)
- {
- if(whichShot != _root.newShot5000)
- {
- _root.actions.score += 50;
- }
- _root.actions.explosion(this);
- removeMovieClip(whichShot);
- removeMovieClip(this);
- _X = _X + 20;
- }
- function go(degree)
- {
- _Y = _Y - speed * Math.cos(_rotation * 0.017453292519943295);
- _X = _X + speed * Math.sin(_rotation * 0.017453292519943295);
- if(_rotation < degree)
- {
- _rotation = _rotation + 15;
- }
- if(_rotation > degree)
- {
- _rotation = _rotation - 15;
- }
- }
- if(_name != "paramecium")
- {
- angle = random(360);
- _root.actions.totalcells = _root.actions.totalcells + 1;
- _X = Math.sin(angle * 0.017453292519943295) * (_root.actions.radius2 + 10) + _root.actions.centerx;
- _Y = Math.cos(angle * 0.017453292519943295) * (_root.actions.radius2 + 10) + _root.actions.centery;
- moveTime = getTimer();
- speed = random(4) + 4;
- direction = random(9);
- }
- }
-